package com.pignest.hotel.beans;

import java.util.Date;

import com.pignest.hotel.annotation.Bean;
import com.pignest.hotel.beans.global.BaseBean;

@Bean("充值历史")
public class Memberchargehistrory extends BaseBean {
	private static final long serialVersionUID = -4097011770583834891L;
	
	private Member member;
	private Date chargeTime;
	private int price;
	private String chargetype;
	private String optype;
	private String remark;

	// Constructors

	/** default constructor */
	public Memberchargehistrory() {
	}

	/** full constructor */
	public Memberchargehistrory(Member member, Date chargeTime, int price,
			 String chargetype, String optype, String remark) {
		this.member = member;
		this.chargeTime = chargeTime;
		this.price = price;

		this.chargetype = chargetype;
		this.optype = optype;
		this.remark = remark;
	}

	public Member getMember() {
		return this.member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Date getChargeTime() {
		return this.chargeTime;
	}

	public void setChargeTime(Date chargeTime) {
		this.chargeTime = chargeTime;
	}

	public int getPrice() {
		return this.price;
	}

	public void setPrice(int price) {
		this.price = price;
	}



	public String getChargetype() {
		return this.chargetype;
	}

	public void setChargetype(String chargetype) {
		this.chargetype = chargetype;
	}

	public String getOptype() {
		return this.optype;
	}

	public void setOptype(String optype) {
		this.optype = optype;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toSimpleString() {
		return concat(member.getName(), String.valueOf(price));
	}
}